package com.ma.controller;

import com.ma.Dao.ClassDao;
import com.ma.entity.Classes;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ProjectName: teamProucer
 * @Package: com.ma.controller
 * @ClassName: ClassesCon
 * @Author: YHHHH
 * @Description:
 * @Date: 2021/4/9 20:43
 * @Version: 1.0
 */
@RestController
@CrossOrigin
public class ClassesCon {

    @Autowired
    private ClassDao classDao;

    @GetMapping("/class/findAllClass")
    public List<Classes> findAllClass(){
        return classDao.findAllClasses();
    }

}
